package com.server.misc;

/**
 * http://cyrilmazur.com/2010/08/unique-id-for-java-classes.html
 *
 */
public abstract class NewID {

	public static class UserID extends NewID {
		protected static int id = 0;

		public UserID() {
			++id;
		}

		public int getID() {
			return id;
		}
	}

	public static class TeamID extends NewID {
		protected static int id = 0;

		public TeamID() {
			++id;
		}

		public int getID() {
			return id;
		}
	}

	public static class ChatID extends NewID {
		protected static int id = 0;

		public ChatID() {
			++id;
		}

		public int getID() {
			return id;
		}
	}

	public static class OrderID extends NewID {
		protected static int id = 0;

		public OrderID() {
			++id;
		}

		public int getID() {
			return id;
		}
	}
	
	public static class OnboardSystemID extends NewID {
		protected static int id = 0;

		public OnboardSystemID() {
			++id;
		}

		public int getID() {
			return id;
		}
	}
}